//
//  GPSLngLat.m
//  FuntlFramework
//
//  Created by liweimin on 13-11-13.
//  Copyright (c) 2013年 liweimin. All rights reserved.
//

#import "FUNTLGPSLngLat.h"

@implementation FUNTLGPSLngLat

@synthesize lng;
@synthesize lat;

//计算两个经纬度之间的距离
+ (double)distance:(double)lat1 lat2:(double)lat2 lng1:(double)lng1 lng2:(double)lng2 {
    CLLocation *curLocation = [[CLLocation alloc] initWithLatitude:lat1 longitude:lng1];
    CLLocation *otherLocation = [[CLLocation alloc] initWithLatitude:lat2 longitude:lng2];
    double distance  = [curLocation distanceFromLocation:otherLocation];
    return distance;
}

@end
